package com.cg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 基础表-省市区
 * </p>
 *
 * @author lhy
 * @since 2024-12-26
 */
@Getter
@Setter
@Schema(description = "City对象")
public class City implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "YYYY-MM-dd")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "YYYY-MM-dd")
    private LocalDateTime updateTime;
    @Schema(description = "名称")
    private String name;
    @Schema(description = "区域编号")
    private String code;
    @Schema(description = "层级 1,2,3")
    private Integer level;
    @Schema(description = "父级ID")
    private Long parentId;
    @Schema(description = "拼音首字母缩写")
    private String acronym;
    @Schema(description = "排序")
    private Integer sort;
}
